package org.wattdepot.cli.processor;

import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.wattdepot.resource.source.jaxb.Source;

/**
 * Simple tests of the CommmandLineInterface package. 
 * @author Philip Johnson
 *
 */
public class TestCommandLineInterface {
  
  /**
   * Tests the CommandLineInterface methods. 
   * @throws Exception If problems occur. 
   */
  @Test
  public void testCommandLineInterface() throws Exception {
    CommandLineInterface cli = new CommandLineInterface();
    String sources = cli.getSourcesInfo();
    assertTrue("Checking sources", sources.contains("AES"));
    Source sample = cli.getSampleSource();
    assertTrue("Checking power", (cli.getPowerGenerated(sample) > 0));
  }
}
